from django.db import models

# Create your models here.
class Manufacturer(models.Model):
    name = models.CharField(max_length=30)
    country = models.CharField(max_length=30, blank=True, null=True)
    
class DevModel(models.Model):
    name = models.CharField(max_length=30)
    part_number=models.CharField(max_length=30, blank=True, null=True)
    manufacturer = models.ForeignKey('Manufacturer', blank=True, null=True)
    features = models.TextField(blank=True, null=True)

class Device(models.Model):
    name = models.CharField(max_length=30, blank=True, null=True)
    manufacturer = models.ForeignKey('Manufacturer', blank=True, null=True)
    devmodel = models.ForeignKey('DevModel', blank=True, null=True)
    serial_number = models.CharField(max_length=30, blank=True, null=True)
    inventory_number = models.CharField(max_length=30, blank=True, null=True)
    features = models.TextField(blank=True, null=True)